package com.zr.spring.aop;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class AspectJTest {

    @Pointcut("execution(* com.zr.spring.aop.TestBean.test())")
    public void test() {

    }

    @Before("test()")
    public void beforeTest() {

    }

    @After("test()")
    public void afterTest() {

    }
}
